//FirstView Component Constructor
function FirstView() {
	
	var self = Ti.UI.createWindow({
		backgroundColor:'#ffffff'
	});
	//create object instance, a parasitic subclass of Observable
	
	//label using localization-ready strings from <app dir>/i18n/en/strings.xml
	var label = Ti.UI.createLabel({
		color:'#000000',
		text:String.format(L('welcome'),'Titanium'),
		height:'auto',
		width:'auto'
	});
	self.add(label);
	
	//Add behavior for UI
	label.addEventListener('click', function(e) {
		alert(e.source.text);
	});
	
	return self;
}

module.exports = FirstView;
/*
 
 var newWindow = require('/ui/common/MyTimesheet').newWindow;  //NOTE: no file extension on nextWindow.js
			var newWin = new newWindow();
			newWin.open({transition:Titanium.UI.iPhone.AnimationStyle.CURL_UP});

            //var myts = require('/ui/common/MyTimesheet').MyTimesheet;  //NOTE: no file extension on nextWindow.js
			//var newWin = new myts();
			//newWin.open({transition:Titanium.UI.iPhone.AnimationStyle.CURL_UP});
            
            //Ti.UI.currentWindow.open(crWin, {animated:true});
            /*
	    	var fview = require();
	    	var navGroup = Ti.UI.iPhone.createNavigationGroup({
    			window:fview
			});
			win.add(navGroup);
	    	win.open(navGroup);
	    	
 */